package cn.tedu.pet.mapper;

import cn.tedu.pet.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @title: 用户mapper层,增删改查
 * @Author: Huxiuyuan
 * @Date: 2021/10/20 19:58
 */
@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username}")
    User check(String username);
    @Insert("insert into user values(null,#{username},#{password})")
    void UserInsert(User user);
}
